package com.yxhl.zoume.data.http.repository.user;

import com.yxhl.zoume.data.http.rest.param.login.GetSmsCodeParam;
import com.yxhl.zoume.data.http.rest.param.login.MobileLoginParam;
import com.yxhl.zoume.data.http.rest.response.login.GetSmsCodeResponse;
import com.yxhl.zoume.data.http.rest.response.login.MobileLoginResponse;

import rx.Observable;

/**
 * Created by Xboy on 16/3/14.
 */
public interface AccountRepository {

    /**
     * 获取短信验证码
     *
     * @param param
     * @return
     */
    Observable<GetSmsCodeResponse> getSmsCode(GetSmsCodeParam param);

    /**
     * 用户通过手机号登录
     *
     * @param param
     * @return
     */
    Observable<MobileLoginResponse> loginByMobile(MobileLoginParam param);
}
